/*
 * @Author: 汪军 624473119@qq.com
 * @Date: 2023-11-30 10:02:17
 * @LastEditors: 汪军 624473119@qq.com
 * @LastEditTime: 2023-12-06 11:37:44
 * @FilePath: \ekee-web\src\api\enterprise-center.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import request from "@/utils/request.js";

const enterpriseCenterApi = {
  // 获取认证信息
  authorInfo: (data) => {
    return request({
      url: "/company/auth",
      method: "post",
      data,
    });
  },
  // 提交认证信息
  authorSubmit: (data) => {
    return request({
      url: "/company/submit",
      method: "post",
      data,
    });
  },
  // 我已转账
  authorTransfer: (data) => {
    return request({
      url: "/pay/transfer_for_auth",
      method: "post",
      data,
    });
  },
  // 创建支付信息
  createPay: (data)=>{
    return request({
      url: "/pay/create",
      method: "post",
      data,
    });
  },
  // 获取对公转账信息
  payAccount: (data)=>{
    return request({
      url: "/pay/account",
      method: "get",
      data,
    });
  },
  // 转账支付付款费
  transferForPay: (data)=>{
    return request({
      url: "/pay/transfer_for_pay",
      method: "post",
      data,
    });
  },
  // 转账还款
  transferForRepay: (data)=>{
    return request({
      url: "/pay/transfer_for_repay",
      method: "post",
      data,
    });
  },
  // 网站pv统计
  commonPv: (data)=>{
    return request({
      url: "/common/pv",
      method: "post",
      data,
    });
  },
};

export default enterpriseCenterApi;
